/* pages/good/good.wxss */
page {
  height: 100vh;

}

.top-container {
  display: flex;
  background-color: #dcdcdc;
  padding-top: 100rpx;
  align-items: center;
  padding-bottom: 20rpx;
  padding-left: 30rpx;

  text {
    padding-left: 240rpx;
    font-size: 36rpx;
  }
}

.imgdesc {
  position: relative;
  /* 确保子元素的绝对定位是相对于这个容器 */
}

.image-container {
  position: relative;
  width: 750rpx;
  height: 750rpx;
}

.product-swiper{
  width: 750rpx;
  height: 750rpx;
}

.product-image {
  width: 100%;
  height: 100%;
}

.left-arrow {
  position: absolute;
  top: 100rpx;
  /* 调整到你想要的顶部距离 */
  left: 30rpx;
  /* 调整到你想要的左边距离 */
  width: 50rpx;
  /* 根据实际图片大小调整 */
  height: 50rpx;
  /* 根据实际图片大小调整 */
}



.contextdesc {
  .price {

    display: flex;
    align-items: center;

    image {
      width: 30rpx;
      height: 30rpx;
      margin: 60rpx 10rpx;
    }

    text {
      font-size: 60rpx;
      color: red;
      font-weight: bold;
    }
  }

  .gooddesc {
    margin: 0 auto;
    width: 90%;

    text {
      font-size: 40rpx;
      font-weight: 900;
    }
  }

  .specification {
    margin-left: 25rpx;
    display: flex;
    margin-top: 40rpx;
    align-items: center;

    .p1 {
      width: 40rpx;
      height: 40rpx;
    }

    .p2 {
      margin-left: 460rpx;
      height: 32rpx;
      width: 32rpx;
    }

    text {
      margin-left: 20rpx;
      color: #636363;
    }
  }
}



.divider {
  margin-top: 50rpx;
  background-color: #dcdcdc;
  height: 1rpx;
}

.good_info {
  display: flex;

  .goodp {
    margin-top: 20rpx;
    margin-left: 20rpx;
    width: 200rpx;
    height: 200rpx;
    border-radius: 20rpx;
  }

  .price {

    margin-left: 30rpx;
    align-items: flex-end;

    image {
      width: 40rpx;
      height: 40rpx;
    }

    text {
      font-size: 70rpx;
      font-weight: 900;
      color: #f06933;
    }

    .before-discount{
      margin-left: 10rpx;
      font-size: 30rpx;
    }


  }

  .amount {
    margin-left: 30rpx;
    margin-top: 50rpx;
  }
}

.spec-container {
  padding: 20px;
}

.spec-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.option {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option.selected {
  background-color: #007aff;
  color: white;
  border-color: #007aff;
}

.comment {
  margin-bottom: -15rpx;
  margin-top: 30rpx;

  .comment-top {
    align-items: center;
    display: flex;

    text {
      margin-left: 20rpx;
      font-size: 40rpx;
      font-weight: 600;
    }

    image {
      margin-left: 550rpx;
      width: 40rpx;
      height: 40rpx;
    }
  }
}

.divider {
  width: 100%;
  height: 20rpx;
  background-color: #dcdcdc;

}

.comment-pop {
  background-color: #dcdcdc;
  height: auto;
  padding-bottom: 50rpx;

  .comment-top {
    margin-top: -20rpx;
    text-align: center;

    text {
      font-size: 40rpx;
      font-weight: 600;
    }
  }
}

.image_description {
  padding: 0 20rpx;
  margin-top: 20rpx;

  .desc_content {
    margin-top: 30rpx;
    margin-bottom: 30rpx;
    text {
      font-weight: 600;
      font-size: 36rpx;
      margin-top: 10rpx;
    }
  }

  image {
    width: 100%;
  }

}

.bottom-container {
  height: 200rpx;
}

.spec-top{
  font-size: 40rpx;
  font-weight: 600;
  margin-left: 20rpx;
  margin-top: 30rpx;
}



.spec-con-detail{
  margin: 20rpx 10rpx;
  display: flex;
  flex-wrap: wrap;
  
  .spec_unselected {
    margin-bottom: 30rpx;
    margin-right: 20rpx;
    background-color: #DCDCDC;
    padding: 5rpx 20rpx;
    width: auto;
    font-size: 36rpx;
    border-radius: 40rpx;
  }

  .spec_selected {
    margin-bottom: 30rpx;
    margin-right: 20rpx;
    background-color: #34cacf;
    padding: 5rpx 20rpx;
    width: auto;
    font-size: 36rpx;
    border-radius: 40rpx;
  }
}

.purchase{
  position: absolute;
  bottom: 40rpx;
  background-color: rgb(196, 67, 28);
  width: 90%;
  margin: 0 5%;
  color: white;
  font-size: 40rpx;
  text-align: center;
  border-radius: 20rpx;
  font-weight: 100;
  padding: 14rpx 0;
}

.big-parameter-container{
  display: flex;
  .big-param{
    padding: 80rpx 115rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    image{
      width: 140rpx;
    }
    .param{
      padding-top: 20rpx;
      font-size: 35rpx;
      color: #808080;
    }
    .detail{
      margin-top: 20rpx;
      font-size: 40rpx;
      font-weight: 800;
    }
  }
}

.small-parameter-container{
  margin:0 20rpx;
  background-color: #eeeeee;
  height: 320rpx;
  border-radius: 20rpx;
  .small-parameter{
    margin-bottom: 30rpx;
    .attr{
      top: 20rpx;
      position: relative;
      left: 40rpx;
      font-size: 34rpx;
    }
    .value{
      margin-top: 20rpx;
      position: absolute;
      right: 40rpx;
      font-size: 34rpx;
    }
  }
}

.s-t{
  display: flex;
  margin: -26rpx;
  justify-content: center;
  font-size: 40rpx;
  font-weight: 800;
}

